package tm.operations;

import java.util.List;
import java.util.Set;

import tm.data.DaoFactory;
import tm.data.MilestonesDao;
import tm.data.ProjectsDao;

public class ProjectOperations {

	ProjectsDao projDao = DaoFactory.getInstance().getProjectsDao();
	MilestonesDao mileStoneDao = DaoFactory.getInstance().getMilestonesDao();
	
	public List getProjects(){
		return projDao.projectsDBQuery();
	}
	
	public List getMilestones(){
		return mileStoneDao.milestonesDBQuery();
	}
	
	public void createProject(int id, String name, String desc, Set milestoneDTO){
		projDao.projectsDBSave(id, name, desc, milestoneDTO);
	}
}
